// @/api/index.js

import request from '../../common/js/request.js'

module.exports = { // 导出
	// 站内消息
	Base_MessageRecord: async (params) => {
		return await request({
			url: '/Base_Manage/Base_MessageRecords/GetDataList',
			data: params,
			method: 'post'
		})
	},
	//保存用户信息
	SaveDataOfUserInfo: async (params) => {
		return await request({
			url: '/Base_Manage/Base_VIPUserInfo/SaveData',
			data: params,
			method: 'post'
		})
	},
	// 更新用户信息
	UpdateDataByConditions: async (params) => {
		return await request({
			url: '/Base_Manage/Base_VIPUserInfo/UpdateDataByCondition',
			data: params,
			method: 'post'
		})
	},
	// 获取用户信息
	TheDataUserInfo: async (params) => {
		return await request({
			url: '/Base_Manage/Base_VIPUserInfo/GetTheData',
			data: params,
			method: 'post'
		})
	},
	// 获取验证码
	TemplateCode: async (params) => {
		return await request({
			url: '/Base_Manage/Home/GetShortMessage?Phone=' + params + '&TemplateCode=SMS_274725687',
			// data: params,
			method: 'post'
		})
	},
	// 换绑手机号
	UserReplacePhone: async (params) => {
		return await request({
			url: '/Base_Manage/Home/BindingUserPhone',
			data: params,
			method: 'post'
		})
	},



}